package com.guigu.tms.manager.feign.wj;

import com.github.pagehelper.PageInfo;
import com.guigu.tms.commons.entity.base.PdTruckDriver;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(value = "tms-base",path = "/base/pdTruckDriver", contextId = "LizzApi7")
public interface TruckDriverFeignClient {

    @PostMapping("/findTruckDriverList")
    PageInfo<PdTruckDriver> findTruckDriverList(@RequestBody Map<String, String> map);

    @PutMapping("/UpdateFleetByDriver")
    int UpdateFleetByDriver(@RequestBody PdTruckDriver pdTruckDriver);
}
